#include <bits/stdc++.h>
using namespace std;
int t[100005];
int main()
{
    freopen("duel.in", "r", stdin);
    freopen("duel.out", "w", stdout);
    int n;
    cin >> n;
    for (int i = 1; i <= n; ++i)
    {
        int x;
        cin >> x;
        t[x]++;
    }
    for (int i = 1; i <= 100000; ++i)
    {
        t[i - 1] = max(0, t[i - 1] - t[i]);
        t[i] += t[i - 1];
    }
    cout << t[100000] << endl;
    return 0;
}
